package trpc

import "go/types"

func main() {

}

type Request struct {
	RequestId            int64
	InterfaceName        string
	MethodName           string
	Args                 []interface{}
	ContextPath          string
	TimeoutMillis        int64
	InterfaceNameVersion string
}

func (Request) JavaClassName() string {
	return "com.yealink.trpc.common.DefaultRpcRequest"
}

func (Request) ToBytes() {

}

type Response struct {
	RequestId int64
	Value     interface{}
	ErrorMsg  string
	Status    byte
	E         types.Error
}

func (Response) JavaClassName() string {
	return "com.yealink.trpc.common.DefaultRpcResponse"
}

type RpcPacket struct {
	ReqType    byte
	PacketId   uint32
	PacketType byte
	BodyLength uint32
	Body       []byte
}
